<template>
	<view class="will-register-container">
		<view class="header-step-box">
			<view class="mr-5 ml-5">
				<view class="title">遗嘱登记流程</view>
				<scroll-view scroll-x="true" class="d-flex scroll-view_H ">
					<block v-for="(item,index) in stepList" :key="index">
						<view class="step">
							<view class="box d-flex align-items-center justify-content-center">
								<view class="number-box">{{index+1}}</view>
							</view>
							<view>{{item}}</view>
						</view>
					</block>
				</scroll-view>
			</view>

		</view>
		<view class="bottom-box d-flex align-items-center">
			<button class="save-btn">
				保存
			</button>
			<button class="next-btn">
				下一步
			</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				stepList: ['登记人信息', '遗嘱人信息', '继承人信息', '紧急人信息']
			};
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F6F6F6;
	}

	.scroll-view_H {
		white-space: nowrap;
		width: 100%;
	}

	.will-register-container {
		line-height: 1;

		.header-step-box {
			width: 706rpx;
			height: 237rpx;
			background: #FFFFFF;
			border-radius: 20rpx;
			margin: 0 auto;
			overflow: hidden;

			.title {
				font-size: 30rpx;
				font-weight: 500;
				color: #333333;
				margin-top: 36rpx;

			}

			.step {
				display: inline-block;

				.box {
					width: 56rpx;
					height: 56rpx;
					border: 1rpx dotted #53B3D9;
					border-radius: 50%;
					position: relative;

					&::before {
						position: absolute;
						content: "";
						width: 100rpx;
						height: 1rpx;
						top: 0;
						bottom: 0;
						right: 0;
						// margin: auto 0;
						background-color: red;
					}

				}

				.number-box {
					width: 40rpx;
					height: 40rpx;
					background: #53B3D9;
					border-radius: 50%;
					font-size: 24rpx;
					font-weight: 500;
					text-align: center;
					line-height: 40rpx;
					color: #FFFFFF;
				}
			}
		}

		.bottom-box {
			width: 750rpx;
			height: 146rpx;
			background: #FFFFFF;
			position: fixed;
			bottom: 0;

			button {
				width: 340rpx;
				height: 88rpx;
				border-radius: 44rpx;
				font-size: 30rpx;
				font-weight: 500;
				line-height: 88rpx;
			}

			.save-btn {
				color: #53B3D9;
				border: 1rpx solid #53B3D9;
			}

			.next-btn {
				color: #fff;
				background: #53B3D9;
			}
		}
	}
</style>
